/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmPrincipal.java
 *
 * Created on 02-12-2014, 10:16:15 AM
 */
package presentacion;

/**
 *
 * @author Estudiante
 */
public class FrmPrincipal extends javax.swing.JFrame {

    /** Creates new form FrmPrincipal */
    public FrmPrincipal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPopupMenu1 = new javax.swing.JPopupMenu();
        buttonGroup1 = new javax.swing.ButtonGroup();
        btnEntero = new javax.swing.JButton();
        btnVector = new javax.swing.JButton();
        btnConjunto = new javax.swing.JButton();
        btnListas = new javax.swing.JButton();
        btnRubro = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btnEntero.setText("Trabajo con Enteros");
        btnEntero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEnteroActionPerformed(evt);
            }
        });

        btnVector.setText("Vector con Enteros");
        btnVector.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVectorActionPerformed(evt);
            }
        });

        btnConjunto.setText("Conjunto con Enteros");
        btnConjunto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConjuntoActionPerformed(evt);
            }
        });

        btnListas.setText("Listas");
        btnListas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListasActionPerformed(evt);
            }
        });

        btnRubro.setText("Rubro");
        btnRubro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRubroActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnRubro)
                    .addComponent(btnListas)
                    .addComponent(btnConjunto)
                    .addComponent(btnVector)
                    .addComponent(btnEntero))
                .addContainerGap(238, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addComponent(btnEntero)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnVector)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnConjunto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnListas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRubro)
                .addContainerGap(128, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnVectorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVectorActionPerformed
        // TODO add your handling code here:
        FrmVector obj = new FrmVector();
        obj.setVisible(true);
    }//GEN-LAST:event_btnVectorActionPerformed

    private void btnEnteroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEnteroActionPerformed
        // TODO add your handling code here:
        FrmEntero obj = new FrmEntero();
        obj.setVisible(true);
    }//GEN-LAST:event_btnEnteroActionPerformed

    private void btnConjuntoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConjuntoActionPerformed
        // TODO add your handling code here:
        FrmConjunto obj = new FrmConjunto();
        obj.setVisible(true);
    }//GEN-LAST:event_btnConjuntoActionPerformed

    private void btnListasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListasActionPerformed
        // TODO add your handling code here:
        FrmCliente obj = new FrmCliente();
        obj.setVisible(true);
    }//GEN-LAST:event_btnListasActionPerformed

private void btnRubroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRubroActionPerformed
// TODO add your handling code here:
    FrmRubro obj = new FrmRubro();
        obj.setVisible(true);
}//GEN-LAST:event_btnRubroActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FrmPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnConjunto;
    private javax.swing.JButton btnEntero;
    private javax.swing.JButton btnListas;
    private javax.swing.JButton btnRubro;
    private javax.swing.JButton btnVector;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JPopupMenu jPopupMenu1;
    // End of variables declaration//GEN-END:variables
}
